import request from '@/utils/request'

// 查询下发入库表列表
export function listJobinfo(query) {
  return request({
    url: '/gbase/jobinfo/list',
    method: 'get',
    params: query
  })
}

// 查询下发入库表详细
export function getJobinfo(jobId) {
  return request({
    url: '/gbase/jobinfo/' + jobId,
    method: 'get'
  })
}

// 新增下发入库表
export function addJobinfo(data) {
  return request({
    url: '/gbase/jobinfo',
    method: 'post',
    data: data
  })
}

// 修改下发入库表
export function updateJobinfo(data) {
  return request({
    url: '/gbase/jobinfo',
    method: 'put',
    data: data
  })
}

// 删除下发入库表
export function delJobinfo(jobId) {
  return request({
    url: '/gbase/jobinfo/' + jobId,
    method: 'delete'
  })
}
